var limsProductCondition = Gikam.getPageObject({

    getEditListColumns : function() {
        return [ {
            checkbox : true
        }, {
            field : 'lotCode',
            title : 'T_LIMS_PRODUCT_CONDITION.LOTCODE'
        }, {
            field : 'dataSource',
            title : 'T_LIMS_PRODUCT_CONDITION.DATASOURCE'
        }, {
            field : 'dataType',
            title : 'T_LIMS_PRODUCT_CONDITION.DATATYPE'
        }, {
            field : 'conditionType',
            title : 'T_LIMS_PRODUCT_CONDITION.CONDITIONTYPE'
        }, {
            field : 'columnName',
            title : 'T_LIMS_PRODUCT_CONDITION.COLUMNNAME'
        }, {
            field : 'columnTitle',
            title : 'T_LIMS_PRODUCT_CONDITION.COLUMNTITLE'
        }, {
            field : 'columnValue',
            title : 'T_LIMS_PRODUCT_CONDITION.COLUMNVALUE'
        }, {
            field : 'columnLow',
            title : 'T_LIMS_PRODUCT_CONDITION.COLUMNLOW'
        }, {
            field : 'columnHigh',
            title : 'T_LIMS_PRODUCT_CONDITION.COLUMNHIGH'
        } ];
    },

    getBaseInfoFormFields : function() {
        return [ {
            field : 'lotCode',
            title : 'T_LIMS_PRODUCT_CONDITION.LOTCODE',
            validators : [ 'strLength[0,16]' ]
        }, {
            field : 'dataSource',
            title : 'T_LIMS_PRODUCT_CONDITION.DATASOURCE',
            validators : [ 'strLength[0,66]' ]
        }, {
            field : 'dataType',
            title : 'T_LIMS_PRODUCT_CONDITION.DATATYPE',
            validators : [ 'strLength[0,66]' ]
        }, {
            field : 'conditionType',
            title : 'T_LIMS_PRODUCT_CONDITION.CONDITIONTYPE',
            validators : [ 'strLength[0,66]' ]
        }, {
            field : 'columnName',
            title : 'T_LIMS_PRODUCT_CONDITION.COLUMNNAME',
            validators : [ 'strLength[0,66]' ]
        }, {
            field : 'columnTitle',
            title : 'T_LIMS_PRODUCT_CONDITION.COLUMNTITLE',
            validators : [ 'strLength[0,66]' ]
        }, {
            field : 'columnValue',
            title : 'T_LIMS_PRODUCT_CONDITION.COLUMNVALUE',
            validators : [ 'strLength[0,66]' ]
        }, {
            field : 'columnLow',
            title : 'T_LIMS_PRODUCT_CONDITION.COLUMNLOW',
            validators : [ 'strLength[0,66]' ]
        }, {
            field : 'columnHigh',
            title : 'T_LIMS_PRODUCT_CONDITION.COLUMNHIGH',
            validators : [ 'strLength[0,66]' ]
        }, ];
    },

    baseUrl : IFM_CONTEXT + '/secure/basemodule/coredata/product-conditions',

    getConditionColumns: function () {
        return [{
            index: true
        }, {
            field: 'columnName',
            width: 160,
            title: 'T_LIMS_PRODUCT_CONDITION.COLUMNNAME'
        }, {
            field: 'columnTitle',
            width: 160,
            title: 'T_LIMS_PRODUCT_CONDITION.COLUMNTITLE'
        }]
    }
});
